
namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 商品分销佣金记录表
    /// </summary>
    public partial class ProductBrokerageInfo:BaseModel
    {       
    
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        public Nullable<long> ProductId { get; set; }
        /// <summary>
        /// 百分比
        /// </summary>
        public decimal rate { get; set; }
        public Nullable<long> ShopId { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public Nullable<System.DateTime> CreateTime { get; set; }
        /// <summary>
        /// 成交数 *是卖出的数量，还是成交订单数，退货时是否需要维护
        /// </summary>
        public Nullable<int> SaleNum { get; set; }
        /// <summary>
        /// 代理数 *清退的时候是否需要维护此字段
        /// </summary>
        public Nullable<int> AgentNum { get; set; }
        /// <summary>
        /// 转发数
        /// </summary>
        public Nullable<int> ForwardNum { get; set; }
        /// <summary>
        /// 状态 上架、下架、移除
        /// </summary>
        public ProductBrokerageStatus Status { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public Nullable<int> Sort { get; set; }
        /// <summary>
        /// 销售额
        /// </summary>
        public decimal saleAmount { get; set; }
        /// <summary>
        /// 商品已结佣金
        /// </summary>
        public decimal BrokerageAmount { get; set; }
        /// <summary>
        /// 商品佣金(包含已结未结
        /// </summary>
        public decimal BrokerageTotal { get; set; }
    
        public virtual ProductInfo Himall_Products { get; set; }
        public virtual ShopInfo Himall_Shops { get; set; }
        public virtual ICollection<DistributionProductsInfo> Himall_DistributionProducts { get; set; } = new HashSet<DistributionProductsInfo>();
    }
}
